package com.ac.cron.file;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Component;

import com.ac.service.FileLogService;

import lombok.AllArgsConstructor;

@Component
@AllArgsConstructor
public class FileHandler {

	final FileLogService FileLogService;

	private static FileHandler nt;

	@PostConstruct
	public void init() {
		nt = this;
	}

	public static void clearUploadFile() {
		try {
			nt.FileLogService.clearUploadFile();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
